.class Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;
.super Ljava/lang/Object;
.source "ImageSwitcherActivity.java"

# interfaces
.implements Landroid/widget/AbsListView$OnScrollListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/ImageSwitcherActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    .line 2493
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onScroll(Landroid/widget/AbsListView;III)V
    .locals 2
    .parameter "view"
    .parameter "firstVisibleItem"
    .parameter "visibleItemCount"
    .parameter "totalItemCount"

    .prologue
    .line 2544
    iget-object v0, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v0, p2}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$72(Lcom/netease/newsreader/activity/ImageSwitcherActivity;I)V

    .line 2545
    iget-object v0, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    add-int v1, p2, p3

    add-int/lit8 v1, v1, -0x1

    invoke-static {v0, v1}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$73(Lcom/netease/newsreader/activity/ImageSwitcherActivity;I)V

    .line 2546
    iget-object v0, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v0, p4}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$74(Lcom/netease/newsreader/activity/ImageSwitcherActivity;I)V

    .line 2547
    iget-object v0, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$0(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/widget/PopupWindow;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->dismiss()V

    .line 2548
    return-void
.end method

.method public onScrollStateChanged(Landroid/widget/AbsListView;I)V
    .locals 6
    .parameter "view"
    .parameter "scrollState"

    .prologue
    const/4 v5, -0x1

    .line 2496
    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$0(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/widget/PopupWindow;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/PopupWindow;->dismiss()V

    .line 2497
    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$70(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)I

    move-result v3

    if-lez v3, :cond_2

    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$71(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)I

    move-result v3

    iget-object v4, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$70(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)I

    move-result v4

    add-int/lit8 v4, v4, -0x1

    if-ne v3, v4, :cond_2

    .line 2498
    if-nez p2, :cond_2

    .line 2500
    const/4 v2, -0x1

    .line 2501
    .local v2, prcount:I
    const/4 v1, -0x1

    .line 2502
    .local v1, len:I
    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$47(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Ljava/util/HashMap;

    move-result-object v3

    const-string v4, "ptcount"

    invoke-virtual {v3, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    if-eqz v3, :cond_0

    .line 2504
    :try_start_0
    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$47(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Ljava/util/HashMap;

    move-result-object v3

    .line 2505
    const-string v4, "ptcount"

    .line 2504
    invoke-virtual {v3, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    .line 2505
    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    .line 2504
    invoke-static {v3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v2

    .line 2512
    :cond_0
    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$47(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Ljava/util/HashMap;

    move-result-object v3

    .line 2513
    const-string v4, "newPosts"

    .line 2512
    invoke-virtual {v3, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/List;

    if-eqz v3, :cond_1

    .line 2514
    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$47(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Ljava/util/HashMap;

    move-result-object v3

    .line 2515
    const-string v4, "newPosts"

    .line 2514
    invoke-virtual {v3, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/List;

    .line 2515
    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v1

    .line 2523
    :cond_1
    if-eq v2, v5, :cond_2

    if-eq v1, v5, :cond_2

    if-ge v1, v2, :cond_2

    .line 2529
    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$58(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/widget/ListView;

    move-result-object v3

    iget-object v4, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$63(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/widget/LinearLayout;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/ListView;->removeFooterView(Landroid/view/View;)Z

    .line 2530
    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$58(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/widget/ListView;

    move-result-object v3

    iget-object v4, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$63(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/widget/LinearLayout;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/ListView;->addFooterView(Landroid/view/View;)V

    .line 2531
    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$58(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/widget/ListView;

    move-result-object v3

    iget-object v4, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$52(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Lcom/netease/newsreader/util/MergeAdapter;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 2532
    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$58(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/widget/ListView;

    move-result-object v3

    iget-object v4, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$71(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)I

    move-result v4

    invoke-virtual {v3, v4}, Landroid/widget/ListView;->setSelection(I)V

    .line 2533
    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$7;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$62(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Ljava/util/HashMap;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/HashMap;->clear()V

    .line 2538
    .end local v1           #len:I
    .end local v2           #prcount:I
    :cond_2
    :goto_0
    return-void

    .line 2506
    .restart local v1       #len:I
    .restart local v2       #prcount:I
    :catch_0
    move-exception v0

    .line 2508
    .local v0, e:Ljava/lang/Exception;
    goto :goto_0
.end method
